package root;

import game.CrosswordGameController;
import algos.*;

public class Main {
	
	public static void main(String[] args) {
		GameController<GridOfWords> gc = new CrosswordGameController();
		Problem<GridOfWords> problem = new Problem<GridOfWords>(new GridOfWords(4,4), gc);
		Backtracker<GridOfWords> b = new Backtracker<GridOfWords>();
		
		long deb = System.currentTimeMillis();
		Solution<GridOfWords> solution = b.solve(problem, gc);
		
		System.out.println("fin : "+ (System.currentTimeMillis() - deb));
		
		System.out.println(solution.getContextLayer());
	}

}
